package com.zhongke.DKYCboot.service.impl;

import com.zhongke.DKYCboot.mapper.BusinessMapper;
import com.zhongke.DKYCboot.po.Business;
import com.zhongke.DKYCboot.service.BusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class BusinessServiceImpl implements BusinessService {
    @Autowired
    private BusinessMapper businessMapper;

    @Override

    public List<Business> getBusinessOrderTypeId(Integer orderTypeId) {
        List<Business> list = new ArrayList<>();
        list = businessMapper.getOrderTypeByID(orderTypeId);

        return list;
    }

    @Override
    public Business getBusinessById(Integer businessId) {
        Business business = new Business();
        business = businessMapper.getBusinessId(businessId);
        return business;
    }
}